﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ELO
{
    class Player
    {
        public long ID;
        public string Name;
        public long Wins;
        public long Losses;
        public long Rating;

        public string DisplayValue
        {
            get { return string.Format("{0} ({1})", this.Name, this.Rating.ToString()); }
        }

        public Player()
        {
        }

        public Player(string name)
        {
            this.Name = name;
            this.Wins = 0;
            this.Losses = 0;
            this.Rating = 1500;
        }

        public Player(long id, string name, long wins, long losses, long rating)
        {
            this.ID = id;
            this.Name = name;
            this.Wins = wins;
            this.Losses = losses;
            this.Rating = rating;
        }
    }
}
